<template>
  <view class="pagesB tn-safe-area-inset-bottom">
    <!-- 顶部自定义导航 -->
    <tn-nav-bar :isBack="false" :bottomShadow="false" backgroundColor="#F6F6F600">
      <view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
        <view class="custom-nav__back" @click="tn('')">
          <view class="tn-icon-reload-planet-fill" style="color: #FFFFFF;"></view>
        </view>
        <view class="" style="width: 62vw;overflow: hidden;margin-top: 36rpx;">
          <tn-tabs :list="scrollList" :current="current" @change="tabChange" inactiveColor="#FFFFFF80" activeColor="#FFFFFF" :bold="true" :fontSize="36"></tn-tabs>
        </view>
      </view>
    </tn-nav-bar>
    
    <view class="">
      <view class="slideshow">
        <view class="slideshow-image" style="background-image: url('https://resource.tuniaokj.com/images/avatar/xiong/x16.jpg')">
        </view>
        <view class="slideshow-image" style="background-image: url('https://resource.tuniaokj.com/images/avatar/xiong/x8.jpg')">
        </view>
        <view class="slideshow-image" style="background-image: url('https://resource.tuniaokj.com/images/avatar/xiong/x19.jpg')">
        </view>
        <view class="slideshow-image" style="background-image: url('https://resource.tuniaokj.com/images/avatar/xiong/x12.jpg')">
        </view>
        <!-- 假阴影 -->
        <view class="" style="width: 100%;height: 420upx;background: linear-gradient(0deg, rgba(0,0,0,0),  rgba(0,0,0,0), rgba(0,0,0,1));position: absolute;bottom: 0;z-index: 9999 !important;">
        </view>
      </view>
      <view class="beibei">
        <view class="beibei2" style="background-image: url('https://resource.tuniaokj.com/images/avatar/xiong/x1.jpg')">
        </view>
      </view>
      
    </view>
    
    <!-- 顶部假底色-->
    <view class="" style="z-index: 600;position: fixed;top:0;width: 100vw;background-color: #020303;height: 78px;" :style="{Height: vuex_custom_bar_height + 'px;'}">
    </view>
    
    <view class="">
      
      <view class="tn-flex tn-flex-row-center tn-padding-xs tn-margin-top-sm" style="position: relative;z-index: 599;">
        <view class="tn-flex tn-flex-col-center" style="border-radius: 100rpx;background-color: #3A404B;color: #999999;" @click="tn('/momentPages/message')">
          <view class="" style="padding: 10rpx;">
            <view class="message-pic">
              <view class="message-image" style="background-image:url('https://resource.tuniaokj.com/images/avatar/xiong/x8.jpg');width: 50rpx;height: 50rpx;background-size: cover;">
              </view>
            </view>
          </view>
          <view class="" style="padding: 10rpx 30rpx 10rpx 10rpx;">
            <view class="tn-flex tn-flex-row-between tn-flex-col-between">
              <view class="justify-content-item">
                <text class="tn-text-df">3 条新消息</text>
              </view>
            </view>
          </view>
        </view>
      </view>
      
      <view class="tn-flex tn-flex-direction-column tn-margin-top-sm tn-margin-bottom" v-if="current==0">
           
        <!-- 图文信息 -->
        <block v-for="(item,index) in content">
          <view class="blogger__item tn-margin-bottom-sm tn-margin-top-sm" :key="index">
            <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
              <view class="justify__author__info" @click="tn('/momentPages/blogger_other')">
                <view class="tn-flex tn-flex-row-center">
                  <view class="tn-flex tn-flex-row-center tn-flex-col-center">
                    <view class="logo-pic">
                      <view class="logo-image" :style="'background-image:url(' + item.userAvatar + ');width: 70rpx;height: 70rpx;background-size: cover;'">
                      </view>
                    </view>
                    
                    <view class="tn-padding-right tn-text-ellipsis">
                      <view class="tn-padding-right tn-padding-left-sm tn-text-bold tn-color-white">{{ item.userName }}</view>
                      <view class="tn-padding-right tn-padding-left-sm tn-padding-top-xs tn-color-gray tn-text-xs">{{ item.date }}</view>
                    </view>
                  </view>
                </view>
              </view>
              <view class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
                <!-- 为什么不放关注按钮，因为快餐文化的世界，关注按钮放在外面没必要 -->
                <picker @change="bindPickerChange" :value="numindex" :range="array">
                  <text class="tn-icon-group-square tn-color-gray tn-text-bold tn-text-xxl"></text>
                </picker>
              </view>
            </view>
            
            <view class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left" @click="tn('/momentPages/details')">
              <view v-for="(label_item,label_index) in item.label" :key="label_index" class="blogger__desc__label tn-float-left tn-margin-right">
                <text class="blogger__desc__label--prefix tn-icon-sprout"></text> 
                <text class="tn-text-df">{{ label_item }}</text>
              </view>
              <!-- 不用限制长度了，因为发布的时候限制长度了-->
              <text v-if="!item.label || item.label.length < 4" class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df tn-color-white">{{ item.desc }}</text>  
            </view>
            
            <!-- 内容太多疲劳了-->
            <!-- <view
              v-if="item.content"
              class="blogger__content"
              :id="`blogger__content--${index}`"
            >
              <view
                class="blogger__content__data clamp-text-2">
                {{ item.content }}
              </view>
            </view> -->
            
            <block v-if="item.mainImage">
              <view v-if="[1,2,4].indexOf(item.mainImage.length) != -1" class="tn-padding-top-xs" @click="tn('/momentPages/details')">
                <image v-for="(image_item,image_index) in item.mainImage" :key="image_index" 
                  class="blogger__main-image"
                  :class="{
                    'blogger__main-image--1 tn-margin-bottom-sm': item.mainImage.length === 1,
                    'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.mainImage.length === 2 || item.mainImage.length === 4
                  }"
                  :src="image_item"
                  mode="aspectFill"
                ></image>
              </view>
              <view v-else class="tn-padding-top-xs" style="" @click="tn('/momentPages/details')">
                <tn-grid  hoverClass="none" :col="3">
                  <block v-for="(image_item,image_index) in item.mainImage" :key="image_index">
                    <tn-grid-item style="width: 29%;margin: 0 20rpx 20rpx 0;">
                      <image
                        class="blogger__main-image blogger__main-image--3"
                        :src="image_item"
                        mode="aspectFill"
                      ></image>
                    </tn-grid-item>
                  </block>
                </tn-grid>
              </view>
            </block>
                         
            <view class="tn-flex tn-flex-row-between tn-flex-col-center" style="margin: 0 0 18rpx 0;">
              <!-- <view class="justify-content-item tn-flex tn-flex-col-center">
                <text class="tn-color-gray">{{ item.post }}</text>
                <view style="margin-right: 10rpx;margin-left: 20rpx;">
                  <tn-avatar-group :lists="item.viewUser.latestUserAvatar" size="sm"></tn-avatar-group>
                </view>
                <text class="tn-color-gray">{{ item.viewUser.viewUserCount }}人</text>
              </view> -->
              
              <view class="justify-content-item">
                <view class="tag-game" style="font-size: 18rpx;">
                  <view class="tn-flex tn-flex-col-center">
                    <view class="justify-content-item circle-pic">
                      <view class="circle-image" :style="'background-image:url(' + item.circleAvatar + ');'">
                      </view>
                    </view>
                    <view class="justify-content-item" style="padding: 0 18rpx 0 0;line-height: 36rpx;">
                      <!-- <text class="tn-icon-circle"></text> -->
                      <text class="tn-padding-left-xs">{{ item.post }}</text>
                    </view>
                  </view>
                </view>
              </view>
              
              <view class="justify-content-item tn-color-gray tn-text-center">
                <!-- <text class="tn-icon-fire tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-padding-right tn-text-df">{{ item.collectionCount }}</text> -->
                <text class="tn-icon-like-lack tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-padding-right tn-text-df">{{ item.commentCount }}</text>
                <text class="tn-icon-topics tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-text-df">{{ item.likeCount }}</text>
              </view>
            
            </view>
            
          </view>
          
          <!-- 边距间隔 -->
          <!-- <view class="tn-strip-bottom-min" v-if="index != content.length - 1"></view> -->
        </block>
        
        <!-- 边距间隔 -->
        <!-- <view class="tn-strip-bottom-min"></view> -->
        
        <!-- 图鸟广告 -->
        <view class="blogger__item tn-margin-top-sm tn-margin-bottom-sm" @click="tn('/momentPages/advertise')">
          <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-bottom">
            <view class="justify-content-item">
              <view class="tn-flex tn-flex-col-center tn-flex-row-left">
                <!-- 图标logo -->
                <view class="logo-pic">
                  <view class="logo-image" style="background-image:url('https://cdn.nlark.com/yuque/0/2024/jpeg/280373/1728909065018-assets/web-upload/3e5c928c-aeb1-40a1-a037-a0228bcc6a5f.jpeg');width: 70rpx;height: 70rpx;background-size: cover;">
                  </view>
                </view>
                <view class="tn-padding-right" style="width: 65vw;">
                  <view class="tn-padding-right tn-padding-left-sm tn-text-bold tn-color-white">图鸟 · 致力创新</view>
                  <view class="tn-padding-right tn-padding-left-sm tn-padding-top-xs tn-color-gray tn-text-xs">我想和你，前往未来</view>
                </view>
              </view>
            </view>
            <view class="tn-color-gray">广告</view>
          </view>
          <view class="tn-padding-bottom-sm">
            <tn-stack-swiper ref="stackSwiper" :list="adList" :switchRate="30" :height="300" width="96%" :autoplay="adAutoplay"></tn-stack-swiper>
          </view>
        </view>
        
        <!-- 边距间隔 -->
        <!-- <view class="tn-strip-bottom-min"></view> -->
        
        <!-- 图文信息 -->
        <block v-for="(item,index) in content">
          <view class="blogger__item tn-margin-bottom-sm tn-margin-top-sm" :key="index">
            <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
              <view class="justify__author__info" @click="tn('/momentPages/blogger_other')">
                <view class="tn-flex tn-flex-row-center">
                  <view class="tn-flex tn-flex-row-center tn-flex-col-center">
                    <view class="logo-pic">
                      <view class="logo-image" :style="'background-image:url(' + item.userAvatar + ');width: 70rpx;height: 70rpx;background-size: cover;'">
                      </view>
                    </view>
                    
                    <view class="tn-padding-right tn-text-ellipsis">
                      <view class="tn-padding-right tn-padding-left-sm tn-text-bold tn-color-white">{{ item.userName }}</view>
                      <view class="tn-padding-right tn-padding-left-sm tn-padding-top-xs tn-color-gray tn-text-xs">{{ item.date }}</view>
                    </view>
                  </view>
                </view>
              </view>
              <view class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
                <!-- 为什么不放关注按钮，因为快餐文化的世界，关注按钮放在外面没必要 -->
                <picker @change="bindPickerChange" :value="numindex" :range="array">
                  <text class="tn-icon-group-square tn-color-gray tn-text-bold tn-text-xxl"></text>
                </picker>
              </view>
            </view>
            
            <view class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left" @click="tn('/momentPages/details')">
              <view v-for="(label_item,label_index) in item.label" :key="label_index" class="blogger__desc__label tn-float-left tn-margin-right">
                <text class="blogger__desc__label--prefix tn-icon-sprout"></text> 
                <text class="tn-text-df">{{ label_item }}</text>
              </view>
              <!-- 不用限制长度了，因为发布的时候限制长度了-->
              <text v-if="!item.label || item.label.length < 4" class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df tn-color-white">{{ item.desc }}</text>  
            </view>
            
            <!-- 内容太多疲劳了-->
            <!-- <view
              v-if="item.content"
              class="blogger__content"
              :id="`blogger__content--${index}`"
            >
              <view
                class="blogger__content__data clamp-text-2">
                {{ item.content }}
              </view>
            </view> -->
            
            <block v-if="item.mainImage">
              <view v-if="[1,2,4].indexOf(item.mainImage.length) != -1" class="tn-padding-top-xs" @click="tn('/momentPages/details')">
                <image v-for="(image_item,image_index) in item.mainImage" :key="image_index" 
                  class="blogger__main-image"
                  :class="{
                    'blogger__main-image--1 tn-margin-bottom-sm': item.mainImage.length === 1,
                    'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.mainImage.length === 2 || item.mainImage.length === 4
                  }"
                  :src="image_item"
                  mode="aspectFill"
                ></image>
              </view>
              <view v-else class="tn-padding-top-xs" style="" @click="tn('/momentPages/details')">
                <tn-grid  hoverClass="none" :col="3">
                  <block v-for="(image_item,image_index) in item.mainImage" :key="image_index">
                    <tn-grid-item style="width: 29%;margin: 0 20rpx 20rpx 0;">
                      <image
                        class="blogger__main-image blogger__main-image--3"
                        :src="image_item"
                        mode="aspectFill"
                      ></image>
                    </tn-grid-item>
                  </block>
                </tn-grid>
              </view>
            </block>
                         
            <view class="tn-flex tn-flex-row-between tn-flex-col-center" style="margin: 0 0 18rpx 0;">
              <!-- <view class="justify-content-item tn-flex tn-flex-col-center">
                <text class="tn-color-gray">{{ item.post }}</text>
                <view style="margin-right: 10rpx;margin-left: 20rpx;">
                  <tn-avatar-group :lists="item.viewUser.latestUserAvatar" size="sm"></tn-avatar-group>
                </view>
                <text class="tn-color-gray">{{ item.viewUser.viewUserCount }}人</text>
              </view> -->
              
              <view class="justify-content-item">
                <view class="tag-game" style="font-size: 18rpx;">
                  <view class="tn-flex tn-flex-col-center">
                    <view class="justify-content-item circle-pic">
                      <view class="circle-image" :style="'background-image:url(' + item.circleAvatar + ');'">
                      </view>
                    </view>
                    <view class="justify-content-item" style="padding: 0 18rpx 0 0;line-height: 36rpx;">
                      <!-- <text class="tn-icon-circle"></text> -->
                      <text class="tn-padding-left-xs">{{ item.post }}</text>
                    </view>
                  </view>
                </view>
              </view>
              
              <view class="justify-content-item tn-color-gray tn-text-center">
                <!-- <text class="tn-icon-fire tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-padding-right tn-text-df">{{ item.collectionCount }}</text> -->
                <text class="tn-icon-like-lack tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-padding-right tn-text-df">{{ item.commentCount }}</text>
                <text class="tn-icon-topics tn-text-lg tn-padding-right-xs" style="color: #00FD00;"></text>
                <text class="tn-text-df">{{ item.likeCount }}</text>
              </view>
            
            </view>
            
          </view>
          
          <!-- 边距间隔 -->
          <!-- <view class="tn-strip-bottom-min" v-if="index != content.length - 1"></view> -->
        </block>
         
            
      </view>
      
      <view class="" v-if="current==1">
      
        <view class="" style="padding: 3vh 20rpx;opacity: 0.6;">
          <view class="tn-text-center" style="font-size: 260rpx;padding-top: 30rpx;">
            <text class="tn-icon-wea-wind tn-color-gray--disabled"></text>
          </view>
          <view class="tn-color-gray tn-text-center tn-text-lg">内容被风吹跑了，嘤</view>
        </view>
      
      </view>
      
      <view class="" v-if="current==2">
      
        <view class="" style="padding: 3vh 20rpx;opacity: 0.6;">
          <view class="tn-text-center" style="font-size: 260rpx;padding-top: 30rpx;">
            <text class="tn-icon-wea-wind tn-color-gray--disabled"></text>
          </view>
          <view class="tn-color-gray tn-text-center tn-text-lg">内容被风吹跑了，嘤嘤嘤</view>
        </view>
      
      </view>
    
    </view>
    

    
    
    <view class="">
      <view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur button-1" @click="tn('/momentPages/edit')" style="color: #00FD00;border: 2rpx solid #00FD00;background-color: #00FD0030;">
        <view class="tn-icon-camera-fill"></view>
      </view>
      <!-- <view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur button-2"  @click="tn('/momentPages/blogger')">
        <view class="tn-icon-ghost-fill tn-color-white">
          <tn-badge backgroundColor="#00FD00" :dot="true" :radius="16" :absolute="true" :translateCenter="false" top="4rpx" right="4rpx"></tn-badge>
        </view>
      </view> -->
    </view> 
    

    <view class="tn-tabbar-height"></view>
    
  </view>
</template>

<script>
  export default {
    name: 'PageB',
    data(){
      return {
        current: 0,
        scrollList: [
          {name: '动态'},
          {name: '问答'},
          {name: '悬赏'}
        ],
        
        array: ['投诉举报', '屏蔽此人'],
      
        // 内容默认隐藏显示的高度
        contentHideShowHeight: 0,
        content: [
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x20.jpg',
            userName: '那只猪',
            post: '柒月谎言',
            date: '12分钟前',
            label: [],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x19.jpg',
            desc: '眼里有光，世界就将为你亮起',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
              ],
              viewUserCount: 62
            },
            collectionCount: 439,
            commentCount: 46,
            likeCount: 83
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x18.jpg',
            userName: '你的名字',
            post: '星光前行',
            date: '2小时前',
            label: ['简单快乐'],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x17.jpg',
            desc: '人生就像一场游戏，每个人的关卡都不同；但游戏嘛，不管怎样，简单快乐最重要',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x8.jpg'
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
              ],
              viewUserCount: 12
            },
            collectionCount: 902,
            commentCount: 64,
            likeCount: 83
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x15.jpg',
            userName: '图鸟北北',
            post: '炙热晚霞',
            date: '1天前',
            label: ['人生','生存经营'],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x14.jpg',
            desc: '人生哪有那么多的烦心事，气度和格局，能让你站得高走得更远',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了 基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x12.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x11.jpg',
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
              ],
              viewUserCount: 231
            },
            collectionCount: 780,
            commentCount: 89,
            likeCount: 82
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x11.jpg',
            userName: '图鸟南南',
            post: '灯光余晖',
            date: '3天前',
            label: [],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x10.jpg',
            desc: '',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了 基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x13.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x19.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x9.jpg',
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
              ],
              viewUserCount: 56
            },
            collectionCount: 431,
            commentCount: 26,
            likeCount: 84
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x6.jpg',
            userName: '图鸟西西',
            post: '考研互励',
            date: '6天前',
            label: ['考研','学习'],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x5.jpg',
            desc: '考研的路上，也是一种自我修养的提升',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x12.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x13.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x14.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x15.jpg',
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
              ],
              viewUserCount: 28
            },
            collectionCount: 432,
            commentCount: 33,
            likeCount: 12
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x8.jpg',
            userName: '图鸟猪猪',
            post: '沥沥淅淅',
            date: '1个月前',
            label: ['摄影','鲜花','路上'],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x12.jpg',
            desc: '比较喜欢简单可爱的花朵',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x20.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x19.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x18.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x17.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x16.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x15.jpg',
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
              ],
              viewUserCount: 65
            },
            collectionCount: 265,
            commentCount: 22,
            likeCount: 62
          },
          {
            userAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x16.jpg',
            userName: '图鸟猪猪',
            post: '独自旅行',
            date: '1年前',
            label: ['旅行','佛系','简单'],
            circleAvatar: 'https://resource.tuniaokj.com/images/avatar/xiong/x15.jpg',
            desc: '说走就走的旅行，人生在于简单快乐',
            content: '基础常用的布局元素，酷炫完善的配色体系，统一可增的图标 icon ，简便调用的功能组件，酷炫的前端页面，吖，编不下去了',
            mainImage:[
              'https://resource.tuniaokj.com/images/avatar/xiong/x9.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x8.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x7.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x6.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x5.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x4.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x3.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x2.jpg',
              'https://resource.tuniaokj.com/images/avatar/xiong/x1.jpg',
            ],
            viewUser: {
              latestUserAvatar: [
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'},
                {src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'},
              ],
              viewUserCount: 65
            },
            collectionCount: 265,
            commentCount: 22,
            likeCount: 62
          }
        ],
        
        adList: [
          {image: 'https://resource.tuniaokj.com/images/avatar/xiong/x14.jpg'},
          {image: 'https://resource.tuniaokj.com/images/avatar/xiong/x13.jpg'},
          {image: 'https://resource.tuniaokj.com/images/avatar/xiong/x12.jpg'},
        ],
        adAutoplay: false,
        

      }
    },
    methods: {
      // tab选项卡切换
      tabChange(index) {
        this.current = index
      },
      // 跳转
      tn(e) {
      	uni.navigateTo({
      		url: e,
      	});
      },
    }
  }
</script>

<style lang="scss" scoped>
  .pagesB{
    max-height: 100vh;
  }
  
/* 自定义导航栏内容 start */
  .custom-nav {
    height: 100%;
    
    &__back {
      margin: auto 5rpx;
      font-size: 50rpx;
      margin-right: 10rpx;
      margin-left: 30rpx;
      flex-basis: 5%;
    }
  }
  
  /* 按钮 */
  .button-1 {
    position: fixed;
    bottom: 24%;
    right: 30rpx;
    z-index: 1001;
    border-radius: 100px;
  }
  .button-2 {
    position: fixed;
    bottom: 15%;
    right: 30rpx;
    z-index: 1001;
    border-radius: 100px;
  }
  
  /* 图标容器15 start */
  .icon15 {
    &__item {
      width: 30%;
      
      border-radius: 10rpx;
      padding: 30rpx;
      margin: 20rpx 10rpx;
      transform: scale(1);
      transition: transform 0.3s linear;
      transform-origin: center center;
      
      &--icon {
        width: 90rpx;
        height: 90rpx;
        font-size: 50rpx;
        border-radius: 50%;
        margin-bottom: 18rpx;
        z-index: 1;
        
        &::after {
          content: " ";
          position: absolute;
          z-index: -1;
          width: 100%;
          height: 100%;
          left: 0;
          bottom: 0;
          border-radius: inherit;
          opacity: 1;
          transform: scale(1, 1);
          background-size: 100% 100%;
        }
      }
    }
  }
  
  /* 悬浮 */
  .tnxuanfu{
    animation: suspension 3s ease-in-out infinite;
  }
  
  @keyframes suspension {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-0.8rem);
    }
  }
  /* 悬浮按钮 */
  .button-shop {
    width: 90rpx;
    height: 90rpx;
    display: flex;
    flex-direction: row;
    position: fixed;
    /* bottom:200rpx;
      right: 20rpx; */
    left: 5rpx;
    top: 5rpx;
    z-index: 1001;
    border-radius: 100px;
    opacity: 0.9;
  }
  
  
  /* 文章内容 start*/
    .blogger {
      &__item {
        background-color: #171E17;
        border-radius: 30rpx;
        margin: 0 30rpx 30rpx 30rpx;
        padding: 30rpx 30rpx 10rpx 30rpx;
      }
      
      &__author {
        &__btn {
          margin-right: -12rpx;
          opacity: 0.5;
        }
      }
      
      &__desc {
        line-height: 30rpx;
        
        &__label {
          color: #00FD00;
          background-color: #004700;
          border-radius: 100rpx;
          font-size: 22rpx;
          padding: 5rpx 15rpx;
          margin: 5rpx 18rpx 0 0;
          
          &--prefix {
            font-size: 24rpx;
            color: #00FD00;
            padding-right: 10rpx;
          }
        }
        &__content {
          line-height: 50rpx;
        }
      }
      
      &__content {
        margin-top: 18rpx;
        padding-right: 18rpx;
        
        &__data {
          line-height: 46rpx;
          text-align: justify;
          overflow: hidden;
          transition: all 0.25s ease-in-out;
  
        }
        
        &__status {
          margin-top: 10rpx;
          font-size: 26rpx;
          color: #82B2FF;
        }
      }
      
      &__main-image {
        border-radius: 16rpx;
        
        &--1 {
          max-width: 80%;
          max-height: 300rpx;
        }
        
        &--2 {
          max-width: 260rpx;
          max-height: 260rpx;
          background-color: #004700;
        }
        
        &--3 {
          height: 174rpx;
          width: 100%;
        }
      }
      
      &__count-icon {
        font-size: 40rpx;
        padding-right: 5rpx;
      }
      
      &__ad {
        width: 100%;
        height: 500rpx;
        transform: translate3d(0px, 0px, 0px) !important;
        
        ::v-deep .uni-swiper-slide-frame {
          transform: translate3d(0px, 0px, 0px) !important;
        }
        .uni-swiper-slide-frame {
          transform: translate3d(0px, 0px, 0px) !important;
        }
        
        &__item {
          position: absolute;
          width: 100%;
          height: 100%;
          transform-origin: left center;
          transform: translate3d(100%, 0px, 0px) scale(1) !important;
          transition: transform 0.25s ease-in-out;
          z-index: 1;
          
          &--0 {
            transform: translate3d(0%, 0px, 0px) scale(1) !important;
            z-index: 4;
          }
          &--1 {
            transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
            z-index: 3;
          }
          &--2 {
            transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
            z-index: 2;
          }
        }
        
        &__content {
          border-radius: 40rpx;
          width: 640rpx;
          height: 500rpx;
          overflow: hidden;
        }
        
        &__image {
          width: 100%;
          height: 100%;
        }
      }
    }
    /* 文章内容 end*/
    
    /* 用户头像 start */
    .logo-image {
      width: 70rpx;
      height: 70rpx;
      position: relative;
      background-position: center;
    }
    
    .logo-pic {
      background-size: cover;
      background-repeat: no-repeat;
      // background-attachment:fixed;
      background-position: center;
      // box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
      border-radius: 100rpx;
      border: 1rpx solid #F8F7F8;
      overflow: hidden;
      // background-color: #FFFFFF;
    }
    
    /* 圈子头像 start */
    .circle-image {
      width: 26rpx;
      height: 26rpx;
      margin: 6rpx;
      border-radius: 100rpx;
      position: relative;
      background-size: cover;
      background-position: center;
    }
    
    .circle-pic {
      background-size: cover;
      background-repeat: no-repeat;
      // background-attachment:fixed;
      background-position: center;
      // box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
      border-radius: 6rpx;
      // border: 1rpx solid #F8F7F8;
      overflow: hidden;
      // background-color: #FFFFFF;
    }
    
    /* 标签 start*/
    .tag-game {
      display: inline-block;
      // padding: 8rpx 14rpx 8rpx;
      border-radius: 10rpx;
      background-color: #3A404B;
      color: #999999;
    }
    /* 标签 end*/
     
    /* 间隔线 start*/
    .tn-strip-bottom-min {
      width: 100%;
      border-bottom: 1rpx solid #F8F7F8;
    } 
     
    .tn-strip-bottom {
     width: 100%;
     border-bottom: 20rpx solid #F8F7F8;
    }
     /* 间隔线 end*/
     
    
  /* 最新消息-头像 start */
  .message-image {
    width: 50rpx;
    height: 50rpx;
    position: relative;
  }
  
  .message-pic {
    background-size: cover;
    background-repeat: no-repeat;
    // background-attachment:fixed;
    background-position: center;
    // box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
    border-radius: 100rpx;
    overflow: hidden;
    // background-color: #FFFFFF;
  }
  
  /* 顶部*/
  /* 用户头像 start */
  .me-image{
    width: 110rpx;
    height: 110rpx;
    position: relative;
  }
  .me-pic{
    width: 110rpx;
    height: 110rpx;
    background-size: cover;
    background-repeat:no-repeat;
    background-position:center;
    border-radius: 100rpx;
    border: 6rpx solid #FFFFFF80;
  }
  
  /* 主图固定 */
  .beibei{
      width:100%;
      height:420upx;
      z-index: 699;
      position: relative;
  }
  .beibei2{
      background-repeat: no-repeat;
      background-size: 100% 100%;
      height: 100%;
      width: 100%;
      position: relative;
      background-position: center center;
      background-size: cover;
  }
  /* 相册 */
  .slideshow {
    top: 0;
    position: absolute;
    width: 100vw;
    height: 420upx;
    overflow: hidden;
    z-index: 700;
  }
  
  .slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: no-repeat 50% 50%;
    background-size: cover;
    -webkit-animation-name: kenburns;
    animation-name: kenburns;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-duration: 16s;
    animation-duration: 16s;
    opacity: 1;
    transform: scale(1.2);
  }
  
  .slideshow-image:nth-child(1) {
    -webkit-animation-name: kenburns-1;
    animation-name: kenburns-1;
    z-index: 3;
  }
  
  .slideshow-image:nth-child(2) {
    -webkit-animation-name: kenburns-2;
    animation-name: kenburns-2;
    z-index: 2;
  }
  
  .slideshow-image:nth-child(3) {
    -webkit-animation-name: kenburns-3;
    animation-name: kenburns-3;
    z-index: 1;
  }
  
  .slideshow-image:nth-child(4) {
    -webkit-animation-name: kenburns-4;
    animation-name: kenburns-4;
    z-index: 0;
  }
  
  @-webkit-keyframes kenburns-1 {
    0% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    1.5625% {
      opacity: 1;
    }
  
    23.4375% {
      opacity: 1;
    }
  
    26.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  
    98.4375% {
      opacity: 0;
      transform: scale(1.2117647059);
    }
  
    100% {
      opacity: 1;
    }
  }
  
  @keyframes kenburns-1 {
    0% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    1.5625% {
      opacity: 1;
    }
  
    23.4375% {
      opacity: 1;
    }
  
    26.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  
    98.4375% {
      opacity: 0;
      transform: scale(1.2117647059);
    }
  
    100% {
      opacity: 1;
    }
  }
  
  @-webkit-keyframes kenburns-2 {
    23.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    26.5625% {
      opacity: 1;
    }
  
    48.4375% {
      opacity: 1;
    }
  
    51.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  }
  
  @keyframes kenburns-2 {
    23.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    26.5625% {
      opacity: 1;
    }
  
    48.4375% {
      opacity: 1;
    }
  
    51.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  }
  
  @-webkit-keyframes kenburns-3 {
    48.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    51.5625% {
      opacity: 1;
    }
  
    73.4375% {
      opacity: 1;
    }
  
    76.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  }
  
  @keyframes kenburns-3 {
    48.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    51.5625% {
      opacity: 1;
    }
  
    73.4375% {
      opacity: 1;
    }
  
    76.5625% {
      opacity: 0;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  }
  
  @-webkit-keyframes kenburns-4 {
    73.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    76.5625% {
      opacity: 1;
    }
  
    98.4375% {
      opacity: 0;
    }
  
    100% {
      opacity: 0;
      transform: scale(1);
    }
  }
  
  @keyframes kenburns-4 {
    73.4375% {
      opacity: 1;
      transform: scale(1.2);
    }
  
    76.5625% {
      opacity: 1;
    }
  
    98.4375% {
      opacity: 0;
    }
  
    100% {
      opacity: 0;
      transform: scale(1);
    }
  }
  
  /* 文字截取*/
  .clamp-text-1 {
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  
  .clamp-text-2 {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  
  
  /* 底部安全边距 start*/
  .tn-tabbar-height {
    min-height: 100rpx;
    height: calc(120rpx + env(safe-area-inset-bottom) / 2);
    height: calc(120rpx + constant(safe-area-inset-bottom));
  }
  
</style>